package cn.angleline.cloudhub.easbi.eas.entity

import java.sql.Timestamp
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

@Entity
@Table(name = "T_BG_BGTEMPLATE")
data class TBgBgTemplate(
        @Id
        @Column(name = "FID")
        val fid: String? = null,

        @Column(name = "FCREATORID")
        val fcreatorid: String? = null,

        @Column(name = "FCREATETIME")
        val fcreatetime: Timestamp? = null,

        @Column(name = "FLASTUPDATEUSERID")
        val flastupdateuserid: String? = null,

        @Column(name = "FLASTUPDATETIME")
        val flastupdatetime: Timestamp? = null,

        @Column(name = "FCONTROLUNITID")
        val fcontrolunitid: String? = null,

        @Column(name = "FNAME")
        val fname: String? = null,

        @Column(name = "FNUMBER")
        val fnumber: String? = null,

        @Column(name = "FDESCRIPTION")
        val fdescription: String? = null,

        @Column(name = "FISALLOWCHANGE")
        val fisallowchange: Int? = null,

        @Column(name = "FDATA")
        val fdata: ByteArray? = null,

        @Column(name = "FMAPDATA")
        val fmapdata: ByteArray? = null,

        @Column(name = "FPARENTID")
        val fparentid: String? = null,

        @Column(name = "FORGUNITID")
        val forgunitid: String? = null,

        @Column(name = "FROOTID")
        val frootid: String? = null,

        @Column(name = "FBGTYPEID")
        val fbgtypeid: String? = null,

        @Column(name = "FDEFAULTMEASUREUNITID")
        val fdefaultmeasureunitid: String? = null,

        @Column(name = "FTEMPLATESTATUS")
        val ftemplatestatus: Int? = 0,

        @Column(name = "FCANMODIFY")
        val fcanmodify: Int? = 0,

        @Column(name = "FFORMTYPE")
        val fformtype: Int? = null,

        @Column(name = "FISCHANGETYPE")
        val fischangetype: Int? = null
)